home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / hardware / adflib / adflibppc / makefile < prev    next >
Makefile  |  1999-06-14  |  959b  |  54 lines

  1. # General Makefile for ADFlib files
  2.  
  3. LIBDIR=Lib
  4. TESTDIR=Test
  5. DEMODIR=Demo
  6. LIBNAME=libadf.a
  7.  
  8.  
  9. all: tests lib demo
  10.  
  11. lib: $(LIBDIR)/$(LIBNAME)
  12.     cp $(LIBDIR)/$(LIBNAME) ./Bin/Linux/
  13.  
  14. $(LIBDIR)/$(LIBNAME):
  15.     cd $(LIBDIR) && $(MAKE)
  16.  
  17. clean:
  18.     cd $(LIBDIR) && ($(MAKE) clean || true)
  19.     cd $(TESTDIR) && ($(MAKE) clean || true)
  20.     cd $(DEMODIR) && ($(MAKE) clean || true)
  21.  
  22. zip:
  23.     ($(MAKE) clean) || true
  24.     (rm adflib.zip) || true
  25.     zip -9r adflib.zip Lib Docs Faq Bin/Linux Boot Demo Makefile README COMPILE CHANGES *.dsp *.dsw
  26.  
  27. zipdump:
  28.     (rm adfdump.zip) || true
  29.     zip -9r dumps.zip Dumps Test
  30.  
  31. binw32:
  32.     (rm binw32.zip) || true
  33.     zip -9r binw32.zip Bin/Win32
  34.  
  35. backup:
  36.     cp -f adflib.zip dumps.zip /mnt/winc/Laurent/
  37.  
  38. demo: $(LIBDIR)/$(LIBNAME)
  39.     cd $(DEMODIR) &&  $(MAKE)
  40.     cd $(DEMODIR) &&  $(MAKE run)
  41.  
  42. tests: $(LIBDIR)/$(LIBNAME)
  43.     cd $(TESTDIR) && $(MAKE)
  44.  
  45.     echo
  46.     echo "floppy tests"
  47.     cd $(TESTDIR) && floppy.sh
  48.  
  49.     echo 
  50.     echo "big devices tests"
  51.     cd $(TESTDIR) && bigdev.sh
  52.  
  53.  
  54.